package com.zjdiepu.www.base.core;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

import javax.validation.GroupSequence;

import org.hibernate.validator.constraints.NotBlank;

import com.alibaba.fastjson.annotation.JSONField;
import com.zjdiepu.www.base.annotation.Id;
import com.zjdiepu.www.base.annotation.Update;
/**
 * 公共属性
 * @author xiongxiaotun
 * @date 2017年3月22日 下午1:05:21
 * @since v1.0.0
 * @update
 */
@ApiModel(value="ParentModel", description="对象公共属性")
@GroupSequence({Id.class, Update.class, ParentModel.class})
public class ParentModel implements Serializable {
	
	private static final long serialVersionUID = 1L;
	/**
	 * 主键
	 */
	@NotBlank(message="唯一标识不能为空",groups={Id.class, Update.class})
	@JSONField(name = "replaceId")
	@ApiModelProperty(name="replaceId",required=true,value="主键",example="1")
	private String id;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
}
